/**
 * @description 邮箱验证码
 * @author LI
 * @date 2020-11-12 19:38
 */

import { ApiProperty } from '@nestjs/swagger'
import { IsEmail, IsNotEmpty } from 'class-validator'

export class PhoneCodeDto {
  @ApiProperty({ description: '注册的手机号', example: '17630033070' })
  @IsNotEmpty({ message: '手机号不能为空' })
  readonly phone: string
}
